package inits

import (
	"app-webapi/controller"
	"github.com/gin-gonic/gin"
)

// TestRoutes 测试相关接口
func TestRoutes(engine *gin.Engine) {
	test := engine.Group("/test/")
	test.GET("/list", controller.TestList)
	test.POST("", controller.AddTest)
	test.PUT("", controller.UpdateTest)
	test.GET(":id", controller.DetailTest)
	test.DELETE(":id", controller.DeleteTest)
}
